import request from '@/utils/request'

// 查询审批的附件文件列表
export function listProcessfile(query) {
  return request({
    url: '/Wecom/processfile/list',
    method: 'get',
    params: query
  })
}

// 查询审批的附件文件详细
export function getProcessfile(fileId) {
  return request({
    url: '/Wecom/processfile/' + fileId,
    method: 'get'
  })
}



// 新增审批的附件文件
export function addProcessfile(data) {
  return request({
    url: '/Wecom/processfile',
    method: 'post',
    data: data
  })
}

// 修改审批的附件文件
export function updateProcessfile(data) {
  return request({
    url: '/Wecom/processfile',
    method: 'put',
    data: data
  })
}

// 删除审批的附件文件
export function delProcessfile(fileId) {
  return request({
    url: '/Wecom/processfile/' + fileId,
    method: 'delete'
  })
}
